<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改测评问题选项')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-question_answer-edit" th:object="${scaleQuestionAnswer}">
            <input name="questionId" th:field="*{questionId}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label">所属测评量表id：</label>
                <div class="col-sm-8">
                    <input name="scaleId" th:field="*{scaleId}" class="form-control" type="text">
                </div>
            </div>

            <div class="form-group">    
                <label class="col-sm-3 control-label">问题内容：</label>
                <div class="col-sm-8">
                    <input name="questionContent" th:field="*{questionContent}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">问题序号：</label>
                <div class="col-sm-8">
                    <input name="questionOrder" th:field="*{questionOrder}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">选项A：</label>
                <div class="col-sm-8">
                    <input name="questionA" th:field="*{questionA}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">选项B：</label>
                <div class="col-sm-8">
                    <input name="questionB" th:field="*{questionB}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">选项C：</label>
                <div class="col-sm-8">
                    <input name="questionC" th:field="*{questionC}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">选项D：</label>
                <div class="col-sm-8">
                    <input name="questionD" th:field="*{questionD}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">选项E：</label>
                <div class="col-sm-8">
                    <input name="questionE" th:field="*{questionE}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">分数A：</label>
                <div class="col-sm-8">
                    <input name="scoreA" th:field="*{scoreA}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">分数B：</label>
                <div class="col-sm-8">
                    <input name="scoreB" th:field="*{scoreB}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">分数C：</label>
                <div class="col-sm-8">
                    <input name="scoreC" th:field="*{scoreC}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">分数D：</label>
                <div class="col-sm-8">
                    <input name="scoreD" th:field="*{scoreD}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">分数E：</label>
                <div class="col-sm-8">
                    <input name="scoreE" th:field="*{scoreE}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">所属因子维度：</label>
                <div class="col-sm-8">
                    <select name="factorId" class="form-control m-b">
                        <option value="">所有</option>
                    </select>
                    <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 代码生成请选择字典属性</span>
                </div>
            </div>

        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "system/question_answer";
        $("#form-question_answer-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-question_answer-edit').serialize());
            }
        }
    </script>
</body>
</html>